package d0320;

import javax.xml.transform.TransformerException;
import java.io.*;



import java.io.*;

public class FileWithDataOutputStreamTest {
    public static void main(String[] args) {
        FileOutputStream fos=null;
        DataOutputStream dos=null;
        File file = new File("src/d0320/data.bin");

        try {
            fos = new FileOutputStream(file);
            dos = new DataOutputStream(fos);
            dos.writeInt(100);
        }
        catch (IOException e) {
            e.printStackTrace();
        }finally {
            if(null != dos){
                try {
                    dos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }

            }

        }
    }
}